﻿using System.Linq;

namespace ScrumPilot.Domain.Repositories
{
    public class UserRepositery : RepositoryBase<user>
    {
        public UserRepositery(DBScrumPilotEntities context)
            : base(context) { }

        public user GetFullById(long id)
        {
            return Dbset.Include("followedby").Include("follow").Include("userprofiles").FirstOrDefault(p => p.userid == id);
        }
    }
}
